//
//  NoticeViewCell.m
//  ForestPack
//
//  Created by 骆锴 on 2018/7/24.
//  Copyright © 2018年 郑洲. All rights reserved.
//

#import "NoticeViewCell.h"

@interface NoticeViewCell ()

@property (nonatomic, strong) UILabel *deliverytime;

@end
@implementation NoticeViewCell

+ (NoticeViewCell *)cellWithTableView:(UITableView *)tableView andIndexPath:(NSIndexPath *)indexPath{
    static NSString *cellID = @"NoticeCell";
    NoticeViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
    if (cell == nil) {
        cell = [[NoticeViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellID];
        cell.backgroundColor = [UIColor whiteColor];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        [cell createSubView];
    }
    
    return cell;
}

-(void)createSubView{
    UIImageView *select1 = [[UIImageView alloc] initWithFrame:CGRectMake(ScreenX375(15), ScreenX375(14), ScreenX375(5), ScreenX375(5))];
    select1.image = [UIImage imageNamed:@"选择"];
    [self addSubview: select1];
    
    _deliverytime =[[UILabel alloc] initWithFrame:CGRectMake(ScreenX375(27), ScreenX375(10), ScreenX375(300), ScreenX375(12))];
    _deliverytime.text = @"预计发货时间: 2018年06月11日";
    _deliverytime.font = Kfont(12);
    _deliverytime.textColor = REXADECIMALCOLOR(@"#999999");
    _deliverytime.textAlignment = NSTextAlignmentLeft;
    [self addSubview:_deliverytime];
    
    UIImageView *select2 = [[UIImageView alloc] initWithFrame:CGRectMake(ScreenX375(15), ScreenX375(35), ScreenX375(5), ScreenX375(5))];
    select2.image = [UIImage imageNamed:@"选择"];
    [self addSubview: select2];
    
    UILabel *label2 =[[UILabel alloc] initWithFrame:CGRectMake(ScreenX375(27), ScreenX375(32), ScreenX375(300), ScreenX375(29))];
    label2.text = @"温馨提示:线下货款逾期结清的用户,请先安排结清逾期欠款后,方可在网络平台下单";
    label2.numberOfLines = 2;
    label2.font = Kfont(12);
    label2.textColor = REXADECIMALCOLOR(@"#999999");
    label2.textAlignment = NSTextAlignmentLeft;
    [self addSubview:label2];
}

-(void)setdelivertime:(NSString *)delivertime{
    _deliverytime.text = delivertime;
}

@end
